﻿using System.Collections;
using System.Web.Mvc;
using System.Web.Routing;

namespace Kratos.Framework.Infrastructures
{
    public interface IKratosModule
    {
        void Initialize();

        /// <summary>
        /// 注册路由信息
        /// </summary>
        void RegisterRoutes(RouteCollection routes);

        /// <summary>
        /// 注册ModelBinder
        /// </summary>
        void RegisterModelBinders(ModelBinderDictionary modelBinders);

        /// <summary>
        /// 注册业务逻辑
        /// </summary>
        void RegisterBizServices();

        /// <summary>
        /// 注册当前程序集的Action
        /// </summary>
        void RegisterAction();

        void Unload();
    }
}
